package com.aznest.context;

import com.aznest.entity.Account;

public class BaseContext {

    public static ThreadLocal<Account> threadLocal = new ThreadLocal<>();
    public static void setCurrentUser(Account user) {
        threadLocal.set(user);
    }

    public static Account getCurrentUser() {
        return threadLocal.get();
    }

    public static void removeCurrentUser() {
        threadLocal.remove();
    }

}
